// 收藏

<template>
  <div>
    <myheader title="我的收藏">
      <!-- 在left插槽插入内容 -->
      <span slot="left" class="iconfont iconjiantou2" @click="$router.back()"></span>
    </myheader>
    <artblock v-for="value in postList" :key="value.id" :post="value"></artblock>
  </div>

</template>

<script>
import myheader from "@/components/myheader";
import artblock from '@/components/artblock.vue';
import {getUserstars} from '@/apis/users';
export default {
  data () {
    return {
      postList:[]
    }
  },
components: {
  myheader,
  artblock
},
async mounted () {
  let res  =await getUserstars();
  console.log(res);
  this.postList = res.data.data;
}
}
</script>

<style>

</style>